package vip.liux.front;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import vip.liux.front.infrastructure.security.CurrentUser;

@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
@EnableDubbo
@EnableDiscoveryClient
public class FrontApplication {
    public static void main(String[] args) {
        SpringApplication.run(FrontApplication.class, args);
    }

    @Bean
    public CurrentUser currentUser() {
        return new CurrentUser();
    }
}
